#include <QApplication>
#include <QPushButton>
#include <QDesktopWidget>

#include <Errors.h>

#include "MainWindow.h"

int main(int argc, char *argv[]) {
	QApplication app(argc, argv);
	MainWindow window;
	window.resize(window.sizeHint());
	int desktopArea = QApplication::desktop()->width() * QApplication::desktop()->height();
	int widgetArea = window.width() * window.height();
	if (((float) widgetArea / (float) desktopArea) < 0.75f)
		window.show();
	else
		window.showMaximized();
	return app.exec();
}
